package com.java01.apache.commons.io;

import java.io.File;
import java.io.IOException;
import java.util.List;

import org.apache.commons.io.FileUtils;

public class ReadFile {

	public static void main(String[] args) {
		File file = new File("D:/word.txt");
		 try {
			List<String> lines = FileUtils.readLines(file, "UTF-8");
			
			for(String line:lines){
				System.out.println(">>"+line);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
